package com.solveit.aps.io.db;

import com.solveit.core.controller.Command;
import com.solveit.core.ui.UIUtil;

public class LoadLiveSolutionComponent {
	public LoadLiveSolutionComponent(){
		Command cmd = new Command() {
			@Override
			public void execute() throws Exception {
//				IntegratedScenario item = IntegratedScenario.selectLiveScenarioStub();
//				new LoadScenarioAction().execute(item.getId(), true, true);
//				for (IntegratedScenario item : ScenarioContainer.getInstance().loadIntegratedScenarioStubs()) {
//					if (item.isLive()) {
//						new LoadScenarioAction().execute(item.getId(), true, true);
//						break;
//					}
//				}
			}
		};
		UIUtil.startCommandOnSeparateThread(cmd, "Loading Integrated Scenario...");
	}
}
